export const Role_Enum = {
  sys_admin: 1,
  enterprise_boss: 2,
  enterprise_driver: 3,
  enterprise_branch: 4,
  enterprise_admin: 5,
  sys_visitor: 6,
  1: 'sys_admin',
  2: 'enterprise_boss',
  3: 'enterprise_driver',
  4: 'enterprise_branch',
  5: 'enterprise_admin',
  6: 'sys_visitor',
}

export const Role_Center_Host = {
  sys_admin: window.domain_config.admin_site,
  enterprise_boss: window.domain_config.enterprise_site,
  enterprise_driver: '',
  enterprise_branch: '',
  enterprise_admin: window.domain_config.enterprise_site,
  sys_visitor: '',
  1: window.domain_config.admin_site,
  2: window.domain_config.enterprise_site,
  3: '',
  4: '',
  5: window.domain_config.enterprise_site,
  6: '',
}

export const Http_Status_Enum = {
  401: '认证失败，无法访问系统资源',
  403: '当前操作没有权限',
  404: '访问资源不存在',
  default: '系统未知错误，请反馈给管理员',
}

export const Waybill_Status_Enum = {
  unreceive: {
    text: '未揽件',
    type: 'info',
  },
  received: {
    text: '已揽件',
    type: 'info',
  },
  instore: {
    text: '已入库',
    type: 'info',
  },
  incar: {
    text: '已装车',
    type: 'info',
  },
  outcar: {
    text: '已卸车',
    type: 'info',
  },
  outstore: {
    text: '已出库',
    type: 'info',
  },
  success: {
    text: '已完成',
    type: 'success',
  },
}

export const Carbill_Status_Enum = {
  transit: {
    text: '未发车',
    type: 'info',
  },
  transiting: {
    text: '运输中',
    type: 'primary',
  },
  transited: {
    text: '已到达',
    type: 'success',
  },
}
